	<fieldset>
	<legend>Pridanie udalosti</legend>

  <?php


    echo form_open('admin/udalost_validation');
    
    echo validation_errors();
    
    echo "<p><label>Názov: </label>";
    echo form_input('nazov', $this->input->post('nazov'));
    echo "</p>";
    
    echo "<p><label>Miestnosť: </label>";
    echo form_input('miestnost', $this->input->post('miestnost'));
    echo "</p>";

    echo "<p><label>Zameranie: </label>";
    echo form_dropdown('zameranie', $udal, $this->input->post('zameranie'));
    echo "</p>";
    
    echo "<p><label>Abstrakt: </label>";
    echo "<p><label> </label>";
    echo form_textarea('abstrakt', $this->input->post('abstrakt'));
    echo "</p>";
    
    echo "<p><label>Vyučujúci: </label>";
    echo form_input('ucitel', $this->input->post('ucitel'));
    echo "</p>";

    echo "<p><label>Max ľudí: </label>";
    echo form_input('maxLud', $this->input->post('maxLud'));
    echo "</p>";
    
    echo "<p><label>Max prednášok/týždeň: </label>";
    echo form_input('maxprednasok', $this->input->post('maxprednasok'));
    echo "</p>";
    
    echo "<p><label>Poznámka: </label>";
    echo form_input('poznamka', $this->input->post('poznamka'));
    echo "</p>";
    
    echo "<p><label></label>";
    echo form_submit('udalost_submit', 'Vytvor');
    echo "</p>";
    
    echo form_close();
	echo "<p><label></label>";
  ?><a href='<?php echo base_url()."main/members" ?>'><button>späť</button></a>
  </p>
  </fieldset>